package com.hxexp.weixin.model;

import java.io.Serializable;

/**
 * 接口通用返回结果
 *
 * @author wang.bin
 *
 */
public class CommonResult implements Serializable {

    private static final long serialVersionUID = 4161880783651481324L;
    /**
     * 错误码
     */
    private Integer errcode;
    /**
     * 错误消息
     */
    private String errmsg;

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    @Override
    public String toString() {
        return String.format("CommonResult [errcode=%d, errmsg=%s]", errcode, errmsg);
    }

}